<template>
  <div class="recommend">
    <div class="recommend-center">
      <p class="headline iconfont icon-hollow-like">猜你喜欢</p>
      <div class="product-container">
        <div
          class="product-wrapper"
          v-for="item in 15"
        >
          <div class="img-wrapper">
            <img src="">
          </div>
          <div class="product-info">
            <p ellipsis>产品名称产品名称产品名称产品名称产品名称</p>
            <div><p class="price">$100</p><p class="like">XXX人感兴趣</p></div>
          </div>
        </div>
      </div>
    </div>
  </div>
  
</template>

<script>
export default {
  name: 'Recommend',
  data () {
    return {

    }
  }
}
</script>

<style lang="scss" scoped>
.recommend {
  padding: .7rem 0 1.2rem;
  background: #fff;
  .recommend-center {
    width: 24rem;
    margin: 0 auto;
    .headline {
      font-size: .48rem;
      font-weight: bolder;
      margin-bottom: .4rem;
      &:before {
        margin-right: .2rem;
        color: #FB5005;
      }
    }
    .product-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      .product-wrapper {
        width: 4.6rem;
        box-sizing: border-box;
        padding: .2rem;
        margin-bottom: .4rem;
        transition: all .4s;
        &:hover {
          box-shadow: 0px 15px 20px #efefef;
        }
        .img-wrapper {
          width: 100%;
          height: 4.2rem;
          margin-bottom: .3rem;
          img {
            width: 100%;
            height: 100%;
          }
        }
        .product-info {
          &>p {
            font-size: .28rem;
          }
          &>div {
            margin-top: .1rem;
            height: .5rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            .price {
              font-size: .36rem;
              font-weight: bolder;
              color: red;
            }
            .like {
              font-size: .24rem;
            }
          }
        }
      }
    }
  }
}
</style>